package primary;

import java.util.ArrayList;
import java.util.Collections;

public class L_CollectionUtils {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<String>();
        for (int i = 0; i < 10; i++) {
            list.add("gao" + i);
        }
        System.out.println(list);
        Collections.shuffle(list);//随机打乱集合中的数据
        System.out.println(list);
        Collections.reverse(list);//逆序数据
        System.out.println(list);
        Collections.binarySearch(list, "gao2");//折半查找数据
        System.out.println(list);


    }
}
